var adminPath = '/admin';
//head img
$('.logo').attr('src', adminPath + "/images/logo.png");
$('.searchbtn').attr('src', adminPath + "/images/search_btn.png");

//nav img
$('#arrow').attr('src', adminPath + "/images/icons/icon_expand_grey.png");
$('#send_mail').attr('src', adminPath + "/images/icons/icon_mail.png");
$('#config').attr('src', adminPath + "/images/icons/icon_cog.png");
$('#logout').attr('src', adminPath + "/images/icons/icon_unlock.png");

//menu img
$('.location').attr('src', adminPath + "/images/icons/icon_breadcrumb.png");
$('#work').attr('src', adminPath + "/images/icons/icon_lrg_media.png");
$('#order').attr('src', adminPath + "/images/icons/icon_lrg_calendar.png");
$('#product').attr('src', adminPath + "/images/icons/icon_lrg_create.png");
$('#member').attr('src', adminPath + "/images/icons/icon_lrg_user.png");
$('#marketing').attr('src', adminPath + "/images/icons/icon_lrg_user.png");
$('#report').attr('src', adminPath + "/images/icons/icon_lrg_support.png");
$('#system').attr('src', adminPath + "/images/icons/icon_lrg_comment.png");

$("#nav > li > a.collapsed + ul").slideToggle("medium");
$("#nav > li > a").click(function() {$(this).toggleClass("expanded").toggleClass("collapsed").find("+ ul").slideToggle("medium");});

$(".toolboxdrop").click(function() {
    if ($("#openCloseIdentifier").is(":hidden")) {
        $("#slider").animate({marginTop: "-150px"}, 500 );
        $("#openCloseIdentifier").show();
        $('#arrow').attr('src', adminPath + "/images/icons/icon_expand_grey.png");
        $('#arrow').attr('alt', '展开');
    } else {
        $("#slider").animate({marginTop: "0px"}, 500 );
        $("#openCloseIdentifier").hide();
        $('#arrow').attr('src', adminPath + "/images/icons/icon_collapsed_grey.png");
        $('#arrow').attr('alt', '收起');
    }
});